package dabs.engine;
import java.util.ArrayList;


public class PowerPlant {
	private int powerGenerated;
	
	PostOffice poffice;
	GameEngine engine;
	
	private ArrayList<ComponentPart> components;
	
	public PowerPlant(GameEngine engine) {
		this.engine = engine;
		poffice = engine.getPostOffice();
		components = new ArrayList<ComponentPart>();
		components.add(0, new Reactor(this, "reactor1", 100, 100));
	}
	
	public int getPowerGenerated() { return powerGenerated; }
	public ArrayList<ComponentPart> getComponents() { return components; }
	
	public void tick(){
		for(ComponentPart part : components){
			part.tick();
		}
	}
}
